package com.cdks.wuxiu.api.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cdks.wuxiu.api.model.dto.CommentReplyInfoDTO;
import com.cdks.wuxiu.entity.mysql.CommentReplyInfo;

import java.util.List;

import org.apache.ibatis.annotations.Param;

/**
 * 评论回复 Mapper 接口
 */
public interface CommentReplyInfoMapper extends BaseMapper<CommentReplyInfo> {
    int addReplyCount(@Param("replyId") long replyId);

    List<CommentReplyInfoDTO> getListAll(@Param("userId") long userId, @Param("topicId") long topicId, @Param("offset") int offset, @Param("pageSize") int pageSize);
    List<CommentReplyInfoDTO> getListMine(@Param("userId") long userId, @Param("topicId") long topicId, @Param("offset") int offset, @Param("pageSize") int pageSize);
}
